public class Phone implements PlayGame{

    String brand;
    double price;

    public Phone(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public Phone() {
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public  void call(){
        System.out.println("正在用"+price+"元的"+brand+"手机打电话");
    }
    @Override
    public void playGame() {
        System.out.println("正在使用"+price+"元的"+brand+"发短信");
    }

}
